<div id="data_page" class="in_page">
	<div class="panel panel-default">
  <div class="panel-body">	
  <if condition="$count lt 6">
   <a href="{:U('Apt/listbn')}"><button type="button" class="btn btn-sm btn-primary ">添加</button></a>  
</if>
  </div>

</div>
      <table class="table table-bordered">
        <thead>
          <tr>
            <th><span class="glyphicon glyphicon-gift"></span>#</th>
            <th><span class="glyphicon glyphicon-leaf"></span>图片</th>
            <th><span class="glyphicon glyphicon-fire"></span>链接</th>
            <th><span class="glyphicon glyphicon-fire"></span>描述</th>
           
         
            <th><span class="glyphicon glyphicon-calendar"></span>操作</th>
          </tr>
        </thead>
        <tbody>
          
      <volist name="list" id="data"  key="$key" >     
		  <tr>
            <th scope="row">{$key+1}</th>
            <th><img src="{$data.src}" width="100" height="50px"/></th>
             <th>{$data.url}</th>
          	 <th>{$data.ms}</th>
          
            <th>			 
				<a href="{:U('Apt/listimgdel')}?id={$data.id}">  <button type="button" class="btn btn-danger btn-xs">删除</button></a>  
  			</th>
          </tr>
          
     </volist>        
          
        </tbody>
      </table> 
	  	<style>
 .pagelist{ text-align:right;  padding:7px 0;}
 .pagelist a{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; background:#fff; color:#6185a2; text-decoration: none;}
 .pagelist span{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; color:#6185a2; color:#fff; background:#6185a2;}


</style>
  
	<nav>
	
			<div class="pagelist">
		    {$page}
		   </div>
	
	</nav>
</div>